<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* asnyc */
        /* 只要在函数前面加上asnyc关键字，函数返回值promise */
        async function go(){
            return 1;

        }
        go().then(res=>{
            console.log(res)
        })
        
        console.log(go())
    </script>
</body>
</html>